package com.redoor.app.stake.basicdata.service;

import com.redoor.app.stake.basicdata.model.BaseRegistrationApply;
import com.redoor.app.stake.basicdata.model.RegistrationApplyForRedis;
import com.redoor.app.stake.basicdata.model.controllerModel.BaseRegistrationApplyCriteria;
import com.redoor.app.stake.basicdata.model.serviceModel.BaseRegistrationApplyBean;
import com.redoornetwork.framework.mybatis.service.Service;
import com.yotouch.app.stake.model.RegistrationApply;

import java.util.List;

/**
 * Created by wangjunlei on 2018-03-08 16:34:23.
 */
public interface BaseRegistrationApplyService extends Service<BaseRegistrationApply, String> {
    /**  
     *  保存redis里注册码申请  
     *   
     * @author ZhangMumu  
     * @date 2018/4/3 0003 20:15  
     * @param   
     * @return   
     */  
    int save (RegistrationApplyForRedis registrationApplyForRedis);
    /**  
     *  批量保存注册码申请信息  
     *   
     * @author ZhangMumu  
     * @date 2018/4/3 0003 20:15
     * @param   
     * @return   
     */  
    int saveAll(List<RegistrationApplyForRedis> registrationApplyForRedisList);
    /**
     * 查询注册码申请
     * @param criteria
     * @return
     */
    public List<BaseRegistrationApply> queryRegistrationApply(BaseRegistrationApplyCriteria criteria);

    public BaseRegistrationApply getBaseRegistrationApply(String uuid);

    public RegistrationApply getHsfRegistrationApply(String uuid,String status);
    /**
     *  获取注册码申请详情,页面使用
     *
     * @author ZhangMumu
     * @date 2018/4/9 0009 17:08
     * @param
     * @return
     */
    public BaseRegistrationApplyBean detail(String uuid);

}
